package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:22
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysUserLoginLog implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long userId;

    /**
     * Attribute userId Be Seted Falg
     */
    private boolean userIdSetted = false;

    /**
    * Attribute userId is Null Falg
    */
    private boolean userIdNull = false;
    private String sessionId;

    /**
     * Attribute sessionId Be Seted Falg
     */
    private boolean sessionIdSetted = false;

    /**
    * Attribute sessionId is Null Falg
    */
    private boolean sessionIdNull = false;
    private java.util.Date loginTime;

    /**
     * Attribute loginTime Be Seted Falg
     */
    private boolean loginTimeSetted = false;

    /**
    * Attribute loginTime is Null Falg
    */
    private boolean loginTimeNull = false;
    private String loginIp;

    /**
     * Attribute loginIp Be Seted Falg
     */
    private boolean loginIpSetted = false;

    /**
    * Attribute loginIp is Null Falg
    */
    private boolean loginIpNull = false;
    private java.util.Date logoutTime;

    /**
     * Attribute logoutTime Be Seted Falg
     */
    private boolean logoutTimeSetted = false;

    /**
    * Attribute logoutTime is Null Falg
    */
    private boolean logoutTimeNull = false;
    private long onlineTime;

    /**
     * Attribute onlineTime Be Seted Falg
     */
    private boolean onlineTimeSetted = false;

    /**
    * Attribute onlineTime is Null Falg
    */
    private boolean onlineTimeNull = false;
    private float onlineMinute;

    /**
     * Attribute onlineMinute Be Seted Falg
     */
    private boolean onlineMinuteSetted = false;

    /**
    * Attribute onlineMinute is Null Falg
    */
    private boolean onlineMinuteNull = false;
    private java.util.Date lastAccessedTime;

    /**
     * Attribute lastAccessedTime Be Seted Falg
     */
    private boolean lastAccessedTimeSetted = false;

    /**
    * Attribute lastAccessedTime is Null Falg
    */
    private boolean lastAccessedTimeNull = false;
    private String loginStatus;

    /**
     * Attribute loginStatus Be Seted Falg
     */
    private boolean loginStatusSetted = false;

    /**
    * Attribute loginStatus is Null Falg
    */
    private boolean loginStatusNull = false;
    private String userName;

    /**
     * Attribute userName Be Seted Falg
     */
    private boolean userNameSetted = false;

    /**
    * Attribute userName is Null Falg
    */
    private boolean userNameNull = false;
    private String userAccount;

    /**
     * Attribute userAccount Be Seted Falg
     */
    private boolean userAccountSetted = false;

    /**
    * Attribute userAccount is Null Falg
    */
    private boolean userAccountNull = false;
    private String userType;

    /**
     * Attribute userType Be Seted Falg
     */
    private boolean userTypeSetted = false;

    /**
    * Attribute userType is Null Falg
    */
    private boolean userTypeNull = false;
    private String userStatus;

    /**
     * Attribute userStatus Be Seted Falg
     */
    private boolean userStatusSetted = false;

    /**
    * Attribute userStatus is Null Falg
    */
    private boolean userStatusNull = false;

    public SysUserLoginLog() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get userId
         *
         * @return long
         */
    final public long getUserId() {
        return userId;
    }

    /**
     * Set userId
     *
     * @param long
     */
    final public void setUserId(long userId) {
        this.userId = userId;

        this.userIdSetted = true;

        this.setUserIdNull(false);
    }

    /**
     * Get userId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isUserIdSetted() {
        return this.userIdSetted;
    }

    /**
     * Set userId Null
     *
     */
    final public void setUserIdNull() {
        this.userIdNull = true;
    }

    final public void setUserIdNull(boolean aNullFlag) {
        this.userIdNull = aNullFlag;
    }

    final public boolean isUserIdNull() {
        return this.userIdNull;
    }

    /**
         * Get sessionId
         *
         * @return String
         */
    final public String getSessionId() {
        if (isSessionIdNull()) {
            return null;
        } else {
            return StringUtils.trim(sessionId);
        }
    }

    /**
     * Set sessionId
     *
     * @param String
     */
    final public void setSessionId(String sessionId) {
        this.sessionId = StringUtils.trim(sessionId);

        this.sessionIdSetted = true;

        this.setSessionIdNull(this.sessionId == null);
    }

    /**
     * Get sessionId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSessionIdSetted() {
        return this.sessionIdSetted;
    }

    /**
     * Set sessionId Null
     *
     */
    final public void setSessionIdNull() {
        this.sessionIdNull = true;
    }

    final public void setSessionIdNull(boolean aNullFlag) {
        this.sessionIdNull = aNullFlag;
    }

    final public boolean isSessionIdNull() {
        return this.sessionIdNull;
    }

    /**
         * Get loginTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLoginTime() {
        return loginTime;
    }

    /**
     * Set loginTime
     *
     * @param java.util.Date
     */
    final public void setLoginTime(java.util.Date loginTime) {
        this.loginTime = loginTime;

        this.loginTimeSetted = true;

        this.setLoginTimeNull(this.loginTime == null);
    }

    /**
     * Get loginTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLoginTimeSetted() {
        return this.loginTimeSetted;
    }

    /**
     * Set loginTime Null
     *
     */
    final public void setLoginTimeNull() {
        this.loginTimeNull = true;
    }

    final public void setLoginTimeNull(boolean aNullFlag) {
        this.loginTimeNull = aNullFlag;
    }

    final public boolean isLoginTimeNull() {
        return this.loginTimeNull;
    }

    /**
         * Get loginIp
         *
         * @return String
         */
    final public String getLoginIp() {
        if (isLoginIpNull()) {
            return null;
        } else {
            return StringUtils.trim(loginIp);
        }
    }

    /**
     * Set loginIp
     *
     * @param String
     */
    final public void setLoginIp(String loginIp) {
        this.loginIp = StringUtils.trim(loginIp);

        this.loginIpSetted = true;

        this.setLoginIpNull(this.loginIp == null);
    }

    /**
     * Get loginIp Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLoginIpSetted() {
        return this.loginIpSetted;
    }

    /**
     * Set loginIp Null
     *
     */
    final public void setLoginIpNull() {
        this.loginIpNull = true;
    }

    final public void setLoginIpNull(boolean aNullFlag) {
        this.loginIpNull = aNullFlag;
    }

    final public boolean isLoginIpNull() {
        return this.loginIpNull;
    }

    /**
         * Get logoutTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLogoutTime() {
        return logoutTime;
    }

    /**
     * Set logoutTime
     *
     * @param java.util.Date
     */
    final public void setLogoutTime(java.util.Date logoutTime) {
        this.logoutTime = logoutTime;

        this.logoutTimeSetted = true;

        this.setLogoutTimeNull(this.logoutTime == null);
    }

    /**
     * Get logoutTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLogoutTimeSetted() {
        return this.logoutTimeSetted;
    }

    /**
     * Set logoutTime Null
     *
     */
    final public void setLogoutTimeNull() {
        this.logoutTimeNull = true;
    }

    final public void setLogoutTimeNull(boolean aNullFlag) {
        this.logoutTimeNull = aNullFlag;
    }

    final public boolean isLogoutTimeNull() {
        return this.logoutTimeNull;
    }

    /**
         * Get onlineTime
         *
         * @return long
         */
    final public long getOnlineTime() {
        return onlineTime;
    }

    /**
     * Set onlineTime
     *
     * @param long
     */
    final public void setOnlineTime(long onlineTime) {
        this.onlineTime = onlineTime;

        this.onlineTimeSetted = true;

        this.setOnlineTimeNull(false);
    }

    /**
     * Get onlineTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOnlineTimeSetted() {
        return this.onlineTimeSetted;
    }

    /**
     * Set onlineTime Null
     *
     */
    final public void setOnlineTimeNull() {
        this.onlineTimeNull = true;
    }

    final public void setOnlineTimeNull(boolean aNullFlag) {
        this.onlineTimeNull = aNullFlag;
    }

    final public boolean isOnlineTimeNull() {
        return this.onlineTimeNull;
    }

    /**
         * Get onlineMinute
         *
         * @return float
         */
    final public float getOnlineMinute() {
        return onlineMinute;
    }

    /**
     * Set onlineMinute
     *
     * @param float
     */
    final public void setOnlineMinute(float onlineMinute) {
        this.onlineMinute = onlineMinute;

        this.onlineMinuteSetted = true;

        this.setOnlineMinuteNull(false);
    }

    /**
     * Get onlineMinute Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOnlineMinuteSetted() {
        return this.onlineMinuteSetted;
    }

    /**
     * Set onlineMinute Null
     *
     */
    final public void setOnlineMinuteNull() {
        this.onlineMinuteNull = true;
    }

    final public void setOnlineMinuteNull(boolean aNullFlag) {
        this.onlineMinuteNull = aNullFlag;
    }

    final public boolean isOnlineMinuteNull() {
        return this.onlineMinuteNull;
    }

    /**
         * Get lastAccessedTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getLastAccessedTime() {
        return lastAccessedTime;
    }

    /**
     * Set lastAccessedTime
     *
     * @param java.util.Date
     */
    final public void setLastAccessedTime(java.util.Date lastAccessedTime) {
        this.lastAccessedTime = lastAccessedTime;

        this.lastAccessedTimeSetted = true;

        this.setLastAccessedTimeNull(this.lastAccessedTime == null);
    }

    /**
     * Get lastAccessedTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastAccessedTimeSetted() {
        return this.lastAccessedTimeSetted;
    }

    /**
     * Set lastAccessedTime Null
     *
     */
    final public void setLastAccessedTimeNull() {
        this.lastAccessedTimeNull = true;
    }

    final public void setLastAccessedTimeNull(boolean aNullFlag) {
        this.lastAccessedTimeNull = aNullFlag;
    }

    final public boolean isLastAccessedTimeNull() {
        return this.lastAccessedTimeNull;
    }

    /**
         * Get loginStatus
         *
         * @return String
         */
    final public String getLoginStatus() {
        if (isLoginStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(loginStatus);
        }
    }

    /**
     * Set loginStatus
     *
     * @param String
     */
    final public void setLoginStatus(String loginStatus) {
        this.loginStatus = StringUtils.trim(loginStatus);

        this.loginStatusSetted = true;

        this.setLoginStatusNull(this.loginStatus == null);
    }

    /**
     * Get loginStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLoginStatusSetted() {
        return this.loginStatusSetted;
    }

    /**
     * Set loginStatus Null
     *
     */
    final public void setLoginStatusNull() {
        this.loginStatusNull = true;
    }

    final public void setLoginStatusNull(boolean aNullFlag) {
        this.loginStatusNull = aNullFlag;
    }

    final public boolean isLoginStatusNull() {
        return this.loginStatusNull;
    }

    /**
         * Get userName
         *
         * @return String
         */
    final public String getUserName() {
        if (isUserNameNull()) {
            return null;
        } else {
            return StringUtils.trim(userName);
        }
    }

    /**
     * Set userName
     *
     * @param String
     */
    final public void setUserName(String userName) {
        this.userName = StringUtils.trim(userName);

        this.userNameSetted = true;

        this.setUserNameNull(this.userName == null);
    }

    /**
     * Get userName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isUserNameSetted() {
        return this.userNameSetted;
    }

    /**
     * Set userName Null
     *
     */
    final public void setUserNameNull() {
        this.userNameNull = true;
    }

    final public void setUserNameNull(boolean aNullFlag) {
        this.userNameNull = aNullFlag;
    }

    final public boolean isUserNameNull() {
        return this.userNameNull;
    }

    /**
         * Get userAccount
         *
         * @return String
         */
    final public String getUserAccount() {
        if (isUserAccountNull()) {
            return null;
        } else {
            return StringUtils.trim(userAccount);
        }
    }

    /**
     * Set userAccount
     *
     * @param String
     */
    final public void setUserAccount(String userAccount) {
        this.userAccount = StringUtils.trim(userAccount);

        this.userAccountSetted = true;

        this.setUserAccountNull(this.userAccount == null);
    }

    /**
     * Get userAccount Has Been Setted
     *
     * @return boolean
     */
    final public boolean isUserAccountSetted() {
        return this.userAccountSetted;
    }

    /**
     * Set userAccount Null
     *
     */
    final public void setUserAccountNull() {
        this.userAccountNull = true;
    }

    final public void setUserAccountNull(boolean aNullFlag) {
        this.userAccountNull = aNullFlag;
    }

    final public boolean isUserAccountNull() {
        return this.userAccountNull;
    }

    /**
         * Get userType
         *
         * @return String
         */
    final public String getUserType() {
        if (isUserTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(userType);
        }
    }

    /**
     * Set userType
     *
     * @param String
     */
    final public void setUserType(String userType) {
        this.userType = StringUtils.trim(userType);

        this.userTypeSetted = true;

        this.setUserTypeNull(this.userType == null);
    }

    /**
     * Get userType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isUserTypeSetted() {
        return this.userTypeSetted;
    }

    /**
     * Set userType Null
     *
     */
    final public void setUserTypeNull() {
        this.userTypeNull = true;
    }

    final public void setUserTypeNull(boolean aNullFlag) {
        this.userTypeNull = aNullFlag;
    }

    final public boolean isUserTypeNull() {
        return this.userTypeNull;
    }

    /**
         * Get userStatus
         *
         * @return String
         */
    final public String getUserStatus() {
        if (isUserStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(userStatus);
        }
    }

    /**
     * Set userStatus
     *
     * @param String
     */
    final public void setUserStatus(String userStatus) {
        this.userStatus = StringUtils.trim(userStatus);

        this.userStatusSetted = true;

        this.setUserStatusNull(this.userStatus == null);
    }

    /**
     * Get userStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isUserStatusSetted() {
        return this.userStatusSetted;
    }

    /**
     * Set userStatus Null
     *
     */
    final public void setUserStatusNull() {
        this.userStatusNull = true;
    }

    final public void setUserStatusNull(boolean aNullFlag) {
        this.userStatusNull = aNullFlag;
    }

    final public boolean isUserStatusNull() {
        return this.userStatusNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysUserLoginLog) == false) {
            return false;
        }

        SysUserLoginLog other = (SysUserLoginLog) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("onlineMinute=");
        buffer.append(this.onlineMinute);

        buffer.append("lastAccessedTime=");
        buffer.append(this.lastAccessedTime);

        buffer.append("loginStatus=");
        buffer.append(this.loginStatus);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("userId=");
        buffer.append(this.userId);

        buffer.append("sessionId=");
        buffer.append(this.sessionId);

        buffer.append("loginTime=");
        buffer.append(this.loginTime);

        buffer.append("loginIp=");
        buffer.append(this.loginIp);

        buffer.append("logoutTime=");
        buffer.append(this.logoutTime);

        buffer.append("onlineTime=");
        buffer.append(this.onlineTime);

        buffer.append("userName=");
        buffer.append(this.userName);

        buffer.append("userType=");
        buffer.append(this.userType);

        buffer.append("userAccount=");
        buffer.append(this.userAccount);

        buffer.append("userStatus=");
        buffer.append(this.userStatus);

        buffer.append("]");

        return buffer.toString();
    }
}
